﻿<%@ Page Title="留言板 - 中闽广告装饰有限公司" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Message.aspx.cs" Inherits="Message" %>

<%@ Register src="UserControl/ucAds.ascx" tagname="ucAds" tagprefix="uc1" %>

<%@ Register src="UserControl/ucMenu.ascx" tagname="ucMenu" tagprefix="uc2" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<link href="CssFile/product.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="ads_s" class="block">
    <uc1:ucAds ID="ucAds1" runat="server" />
    <div class="map">
        <span>您现在的位置： <a href="Default.aspx">首页</a> > 留言板</span>
    </div>
</div>
<div id="msg" class="block clearfix">
    <div class="left">
        <div class="block_header">
            <span>留言板</span>
        </div>
        <div class="block_body">
            
                <asp:Repeater ID="rptMessage" runat="server">
                    <ItemTemplate>
                        <ul>
                            <li class="ask"><%# Eval("MessageContent")%>&nbsp;&nbsp;&nbsp;<span class="gray">留言人：<%# Eval("UserName")%>&nbsp;&nbsp;&nbsp;留言时间：<%# Eval("SubmitDate")%></span></li>
                            <li class="reply" style='display:<%# Eval("ReplyContent").ToString()==""?"none":"block" %>;'><%# Eval("ReplyContent")%></li>
                            <li class="answerer gray" style='display:<%# Eval("ReplyContent").ToString()==""?"none":"block" %>;'>闽中广告--<%# Eval("ReplyUserName")%> 回复于 <%# Eval("ReplyDate")%></li>
                        </ul>
                    </ItemTemplate>
                </asp:Repeater>
            <div class="page">
                <webdiyer:AspNetPager ID="anpList" runat="server" ShowPageIndexBox="always" FirstPageText="首页" LastPageText="尾页"
                            NextPageText="下一页" PrevPageText="上一页" ShowPageIndex="False" ShowInputBox="Always"
                            TextAfterInputBox="页" TextBeforeInputBox="转到" SubmitButtonText="Go" PageSize="5"
                    onpagechanged="anpList_PageChanged"></webdiyer:AspNetPager>
            </div>
            <div class="askbox">
                <ul>
                    <li>昵称：&nbsp;<asp:TextBox ID="txtUserName" runat="server" CssClass="txt"></asp:TextBox>&nbsp;<span class="red">*</span></li>
                    <li>手机：&nbsp;<asp:TextBox ID="txtPhone" runat="server" CssClass="txt"></asp:TextBox></li>
                    <li>邮箱：&nbsp;<asp:TextBox ID="txtEmail" runat="server" CssClass="txt"></asp:TextBox></li>
                    <li>留言：&nbsp;<asp:TextBox ID="txtMsg" runat="server" TextMode="MultiLine" CssClass="msgcontent"></asp:TextBox><span class="red">&nbsp;*</span></li>
                    <li class="bottom"><asp:Button ID="btnSubmit" runat="server" CssClass="submit" 
                            onclick="btnSubmit_Click" Text="提 交" /></li>
                </ul>
            </div>
        </div>
    </div>
    <div id="s_menu" class="right">
        <uc2:ucMenu ID="ucMenu1" runat="server" />
    </div>
</div>
</asp:Content>

